﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.MaHaiBo.Entity
{
    public class UserInfoDTO
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        [Key]
        public int uId { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        public string? accountNumber { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string? password { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string? uName { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public List<RoleInfo>? RName { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public bool uSex { get; set; }
        /// <summary>
        /// 所在省份
        /// </summary>
        public int provinceId { get; set; }

        /// <summary>
        /// 所在市
        /// </summary>
        public int cityId { get; set; }
        
        /// <summary>
        /// 所在县
        /// </summary>
        public int countyId { get; set; }
       

        /// <summary>
        /// 地址
        /// </summary>
        public string? address { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? creator { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime creationTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 修改人
        /// </summary>
        public string? modifier { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? modificationTime { get; set; }
        /// <summary>
        /// 删除标记
        /// </summary>
        public bool deleteFlag { get; set; }

        /// <summary>
        /// 省份名称
        /// </summary>
        public string? provinceName { get; set; }
        /// <summary>
        /// 城市名称
        /// </summary>
        public string? cityName { get; set; }
        /// <summary>
        /// 县名称
        /// </summary>
        public string? countyName { get; set; }


    }
}
